﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.Revit.DB;
namespace SPTest
{
    public static class DefinitionInfo
    {
        private static DefinitionFile instance;
        public static DefinitionFile GetDefinitionFile(Document doc)
        {
            if (instance == null)
            {
                var path = ShareFactory.GetShareParaPath();
                doc.Application.SharedParametersFilename = path;
                instance = doc.Application.OpenSharedParameterFile();
            }

            return instance;

        }
    }
}
